package chapter15;

import java.util.Date;

/**
 * Created by lzy
 * Date: 2018/5/14
 */
public class TimeStampedImp implements TimeStamped {

    private final long timeStamp;

    public TimeStampedImp() {
        timeStamp = new Date().getTime();
    }

    @Override
    public long getStamp() {
        return timeStamp;
    }
}
